<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<head>
		<title>Authentification Page</title>
		</head>
		<br />
		
		<br />
		<br />
		<h:form>
			<div align="center">
			<h2>Login</h2>
			<h:panelGrid columns="2" styleClass="inner-table login">

				<h:outputText value="Username:" />
				<h:inputText styleClass="inputText" id="username"
					value="#{loginBean.uname}"
					requiredMessage="Please, type a username!" required="true" />

				<h:outputText value="Password:" />
				<h:inputSecret styleClass="inputText" id="password"
					value="#{loginBean.upass}"
					requiredMessage="Please, type a password!" required="true" />

			</h:panelGrid> <br></br>
			<h:commandButton action="#{loginBean.login}"
				value="Login" styleClass="button" /> <br></br>
			<h:messages styleClass ="errorMessage"></h:messages></div>

		</h:form>
	</ui:define>

</ui:composition>

</html>

